function img = embedimg(movieH, movieW, im)

img = true(movieH, movieW);
[h w] = size(im);

assert(h <= movieH);
assert(w <= movieW);

ii = uint32(movieH-h)/2;
jj = uint32(movieW-w)/2;
img(ii+1:ii+h, jj+1:jj+w) = im;


